package com.game.server.message.proto.execute;

import com.comm.ISession;
import com.game.majiang.config.LogManager;
import com.game.majiang.logic.LogicClient;
import com.game.majiang.logic.LogicServer;
import com.game.server.message.proto.in.AbstractLogout;

public class Logout extends AbstractLogout {

    @Override
    public void Execute(ISession session) {
        LogicClient client = (LogicClient) LogicServer.getInstance().getClient(session.getId());
        if (client != null&&client.checkClick(msgcode)) {
        	LogManager.getInstance().Log("退出游戏 "+client.getUserId());
            client.Close();
        }
    }

}
